<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
	<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>学生表单</title>
	<c:set var = "path" value = "${pageContext.servletContext.contextPath }"></c:set>
	<link rel="stylesheet" type="text/css" href="${path }/dist/css/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css" href="${path }/css/update.css"/>
	<link rel="stylesheet" type="text/css" href="${path }/css/bootstrap-datetimepicker.min.css"/>
</head>
<body>

	<!-- 页面导航开始 -->
	<jsp:include page="/WEB-INF/page/header.jsp"></jsp:include>
	<!-- 页面导航结束 -->

	<div class="container">
		<div id="update">
			<form action="#" method="post"  class="form-horizontal" role="form">
				<fieldset>
					<legend>学生信息详情</legend>
					<input type="hidden" value="${student.id }" name="sid">
					<div class="form-group">
						<label for="firstname" class="col-md-3 control-label">姓名</label>
						<div class="col-md-4">
							<input type="text" name="sname" value="${student.sname }" class="form-control">
						</div>
					</div>
					<div class="form-group">
						<label for="lastname" class="col-md-3 control-label">学号</label>
						<div class="col-md-4">
							<input type="text" name="studentNumber" value="${student.studentNumber }" class="form-control">
						</div>
					</div>
					<div class="form-group">
						<label for="lastname" class="col-md-3 control-label">性别</label>
						<div class="col-md-1">
									<input type="radio" value="1" ${student.sex eq '1'?'checked':'' }  class="form-control" name="sex">
								</div>
								<label class="pull-left control-label">男</label>
								
								<div class="col-md-1">
									<input type="radio" value="0" ${student.sex eq '0'?'checked':''} class="form-control" name="sex">
								</div>
								<label class="pull-left control-label">女</label>
						
					</div>

					<div class="form-group">
						<div>
							<!-- /*<form class="form-horizontal">*/ -->
							<div class="form-group has-feedback">
								<label for="lastname" class="col-md-3 control-label">出生日期</label>
								<div class="col-md-5">
									<input id="datetimepicker" name="birthday" value="<fmt:formatDate value='${student.birthday }' pattern='yyyy-MM-dd'/>"> <span
										class="glyphicon glyphicon-time form-control-feedback">
									</span>
								</div>
							</div>
							<!-- /*</form>*/ -->
						</div>
					</div>
					<div class="form-group">
						<label for="firstname" class="col-md-3 control-label">政治面貌</label>
						<div class="col-md-4">
							<input type="text" name="polity" value="${student.polity == 1? '党员':student.polity == 2? '团员' :student.polity == 3? '无党派' :'其他'}" class="form-control">
						</div>
					</div>
					  <div class="form-group">
					    <label for="name" >简介</label>
					    <input class="form-control"  value = "${student.brief }" name = "brief"></input>
					  </div>
					
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<input class="btn btn-warning" type="button" name="Submit" value="返回上一页" onclick="javascript:history.back(-1);">
						</div>
					</div>
				</fieldset>
			</form>
		</div>
	</div>

	
	<script type="text/javascript" src="${path }/js/jquery.min.js"></script>
	<script type="text/javascript" src="${path }/dist/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="${path }/js/moment.js"></script>
	<script type="text/javascript" src="${path }/js/bootstrap-datetimepicker.min.js"></script>
	<script type="text/javascript" src="${path }/js/update.js"></script>
</body>
</html>